package com.lixinlei.springboot_servlet.controller.argumentsresolver.HttpEntity;

import com.lixinlei.springboot_servlet.controller.argumentsresolver.RequestBody.Student;
import org.springframework.http.HttpEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/http/entity")
public class HttpEntityController {

    @RequestMapping(path = "/path1")
    public String path1(HttpEntity<Student> studentHttpEntity) {
        System.out.println(studentHttpEntity.getHeaders());
        System.out.println(studentHttpEntity.getBody());
        return "path1";
    }

}
